
import request from '../index';

/**
 * @description: get current language
 * @param {*} parameter
 * @return {*}
 */
export function getNtpTime() {
    return request({
        url: '/api/time/system',
        method: 'get'
    });
}

/**
 * @description:set current language
 * @param {*} params
 * @return {*}
 */
export function setNtpTime(params) {
    return request({
        url: '/api/time/system',
        method: 'post',
        data: params
    });
}

/**
 * 获取时区
 * @returns 
 * { "id": "(GMT-12:00)International Date Line West", "value": "UTC+12:00" },
    { "id": "(GMT-11:00)Coordinated Universal Time-11", "value": "UTC+11:00" },
    { "id": "(GMT-10:00)Aleutian Islands", "value": "HAST+10:00" },
    { "id": "(GMT-10:00)Hawaii", "value": "HST+10:00" },
    { "id": "(GMT-09:30)Marquesas Islands", "value": "MART+09:30" }
 */
export function getTimeZone() {
    return request({
        url: '/api/time/zone',
        method: 'get'
    });
}
